<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>scss | 我的课程记录笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-sectionx/sectionx.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/css/iconfont.html" />
    
    
    <link rel="prev" href="../../md/css/fixed.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="4.12"
        data-chapter-title="scss"
        data-filepath="md/css/scss.md"
        data-basepath="../.."
        data-revision="Tue Dec 26 2017 15:32:01 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/gitbook.html">
            
                
                    <a href="../../md/gitbook.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        gitbook的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/git.html">
            
                
                    <a href="../../md/git.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        git的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/html/html.html">
            
                
                    <a href="../../md/html/html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        html
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="md/html/a标签锚点.html">
            
                
                    <a href="../../md/html/a标签锚点.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        a标签锚点
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="md/html/ul.html">
            
                
                    <a href="../../md/html/ul.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        ul标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="md/html/ol.html">
            
                
                    <a href="../../md/html/ol.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        ol标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="md/html/dl自定义列表.html">
            
                
                    <a href="../../md/html/dl自定义列表.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        dl自定义列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="md/html/内嵌页面.html">
            
                
                    <a href="../../md/html/内嵌页面.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        内嵌页面标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="md/html/网页icon.html">
            
                
                    <a href="../../md/html/网页icon.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.6.</b>
                        
                        网页icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="md/html/微博组件使用.html">
            
                
                    <a href="../../md/html/微博组件使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.7.</b>
                        
                        微博组件使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="md/html/统一化路径base.html">
            
                
                    <a href="../../md/html/统一化路径base.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.</b>
                        
                        统一化路径bace
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.9" data-path="md/html/表格.html">
            
                
                    <a href="../../md/html/表格.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.9.</b>
                        
                        表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.10" data-path="md/html/热区.html">
            
                
                    <a href="../../md/html/热区.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.10.</b>
                        
                        热区
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.11" data-path="md/html/audio.html">
            
                
                    <a href="../../md/html/audio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.11.</b>
                        
                        音频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.12" data-path="md/html/picture.html">
            
                
                    <a href="../../md/html/picture.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.12.</b>
                        
                        picture
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.13" data-path="md/html/video.html">
            
                
                    <a href="../../md/html/video.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.13.</b>
                        
                        视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.14" data-path="md/html/form.html">
            
                
                    <a href="../../md/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.14.</b>
                        
                        form表单
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.14.1" data-path="md/html/input.html">
            
                
                    <a href="../../md/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.14.1.</b>
                        
                        input应用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.14.2" data-path="md/html/form1.html">
            
                
                    <a href="../../md/html/form1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.14.2.</b>
                        
                        扩展的表单功能
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="md/css/css.html">
            
                
                    <a href="../../md/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="md/css/CSS的引入方式.html">
            
                
                    <a href="../../md/css/CSS的引入方式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        css的引入方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="md/css/元素选择器.html">
            
                
                    <a href="../../md/css/元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="md/css/class和id选择器.html">
            
                
                    <a href="../../md/css/class和id选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.</b>
                        
                        class和id选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="md/css/关系选择器.html">
            
                
                    <a href="../../md/css/关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="md/css/伪类选择器.html">
            
                
                    <a href="../../md/css/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.5.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.6" data-path="md/css/属性选择器.html">
            
                
                    <a href="../../md/css/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.6.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.7" data-path="md/css/伪对象选择器.html">
            
                
                    <a href="../../md/css/伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.7.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8" data-path="md/字体样式.html">
            
                
                    <a href="../../md/字体样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.</b>
                        
                        字体样式
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.8.1" data-path="md/css/font.html">
            
                
                    <a href="../../md/css/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.1.</b>
                        
                        Font
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8.2" data-path="md/css/color.html">
            
                
                    <a href="../../md/css/color.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.2.</b>
                        
                        color
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8.3" data-path="md/css/text-decoration.html">
            
                
                    <a href="../../md/css/text-decoration.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.3.</b>
                        
                        text-decoration
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8.4" data-path="md/css/text-shadow.html">
            
                
                    <a href="../../md/css/text-shadow.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.4.</b>
                        
                        text-shadow
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.9" data-path="md/元素样式.html">
            
                
                    <a href="../../md/元素样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.9.</b>
                        
                        元素样式
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.9.1" data-path="md/css/盒子模型.html">
            
                
                    <a href="../../md/css/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.9.1.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.9.2" data-path="md/css/margin.html">
            
                
                    <a href="../../md/css/margin.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.9.2.</b>
                        
                        margin
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.9.3" data-path="md/css/padding.html">
            
                
                    <a href="../../md/css/padding.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.9.3.</b>
                        
                        padding
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.9.4" data-path="md/css/块级元素和行内元素.html">
            
                
                    <a href="../../md/css/块级元素和行内元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.9.4.</b>
                        
                        块级元素和行内元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.9.5" data-path="md/css/行内块元素的对齐.html">
            
                
                    <a href="../../md/css/行内块元素的对齐.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.9.5.</b>
                        
                        行内块元素的对齐
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.10" data-path="md/布局.html">
            
                
                    <a href="../../md/布局.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.10.</b>
                        
                        布局
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.10.1" data-path="md/css/文档流.html">
            
                
                    <a href="../../md/css/文档流.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.10.1.</b>
                        
                        文档流
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.10.2" data-path="md/css/float.html">
            
                
                    <a href="../../md/css/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.10.2.</b>
                        
                        float浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.10.3" data-path="md/css/图片的处理.html">
            
                
                    <a href="../../md/css/图片的处理.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.10.3.</b>
                        
                        图片的处理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.10.4" data-path="md/css/文字的处理.html">
            
                
                    <a href="../../md/css/文字的处理.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.10.4.</b>
                        
                        文字的处理
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.11" data-path="md/css/定位.html">
            
                
                    <a href="../../md/css/定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.11.</b>
                        
                        定位
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.11.1" data-path="md/css/absolute.html">
            
                
                    <a href="../../md/css/absolute.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.11.1.</b>
                        
                        absolute
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.11.2" data-path="md/css/relative.html">
            
                
                    <a href="../../md/css/relative.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.11.2.</b>
                        
                        relative
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.11.3" data-path="md/css/fixed.html">
            
                
                    <a href="../../md/css/fixed.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.11.3.</b>
                        
                        fixed
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="4.12" data-path="md/css/scss.html">
            
                
                    <a href="../../md/css/scss.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.12.</b>
                        
                        scss
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.13" data-path="md/css/iconfont.html">
            
                
                    <a href="../../md/css/iconfont.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.13.</b>
                        
                        icon
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >我的课程记录笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="sass&#x8BED;&#x8A00;&#x9884;&#x5904;&#x7406;css">Sass&#x8BED;&#x8A00;-&#x9884;&#x5904;&#x7406;CSS</h1>
<h1 id="what&#x4ED6;&#x662F;&#x4E2A;&#x4EC0;&#x4E48;&#x4E1C;&#x897F;">WHAT-&#x4ED6;&#x662F;&#x4E2A;&#x4EC0;&#x4E48;&#x4E1C;&#x897F;</h1>
<p>sass&#x8FD9;&#x4E2A;&#x8BED;&#x8A00;&#x7684;&#x8BDE;&#x751F;&#xFF0C;&#x4E3B;&#x8981;&#x7528;&#x4E8E;&#x66F4;&#x597D;&#x7684;&#x7F16;&#x5199;&#x548C;&#x7EF4;&#x62A4;&#x6211;&#x4EEC;&#x7684;css&#x4EE3;&#x7801;&#xFF0C;&#x53EF;&#x4EE5;&#x7406;&#x89E3;&#x4E3A;&#x8D85;&#x7EA7;css(superCSS   .SCSS)&#x3002;&#x540C;&#x7C7B;&#x578B;&#x7684;&#x8FD8;&#x6709;less,stylus&#x3002;</p>
<h1 id="when&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x7528;&#x5B83;">WHEN-&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x7528;&#x5B83;</h1>
<p>&#x5F53;&#x4F60;&#x8981;&#x5199;css&#x7684;&#x65F6;&#x5019;</p>
<h1 id="why&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x7528;&#x5B83;">WHY-&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x7528;&#x5B83;</h1>
<p>&#x56E0;&#x4E3A;&#x5B83;&#x5177;&#x5907;&#x5F88;&#x591A;&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#x7684;&#x7279;&#x70B9;&#x5728;&#x91CC;&#x9762;&#xFF0C;&#x4F8B;&#x5982;&#x4EE3;&#x7801;&#x53EF;&#x4EE5;&#x5C01;&#x88C5;&#x4E3A;&#x6A21;&#x5757;&#xFF0C;&#x8FDB;&#x884C;&#x91CD;&#x7528;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x5BF9;&#x6211;&#x4EEC;&#x7684;&#x7ED3;&#x6784;&#x8FDB;&#x884C;&#x6709;&#x6761;&#x4E0D;&#x7D0A;&#x7684;&#x7F16;&#x6392;&#xFF0C;&#x8FD9;&#x4E9B;&#x90FD;&#x662F;&#x539F;&#x6765;&#x7684;css&#x6240;&#x505A;&#x4E0D;&#x5230;&#x7684;&#x3002;&#x5E76;&#x4E14;&#xFF0C;&#x9762;&#x5BF9;&#x65E5;&#x76CA;&#x590D;&#x6742;&#x7684;&#x7F51;&#x7AD9;&#x548C;&#x9700;&#x6C42;&#xFF0C;&#x591A;&#x4EBA;&#x534F;&#x4F5C;&#x5DF2;&#x7ECF;&#x662F;&#x4E00;&#x4E2A;&#x8D8B;&#x52BF;&#xFF0C;
&#x8BA9;&#x6211;&#x4EEC;&#x7528;sass&#x53EF;&#x4EE5;&#x66F4;&#x597D;&#x7684;&#x53BB;&#x534F;&#x540C;&#x591A;&#x4EBA;&#x4EE3;&#x7801;&#x7684;&#x5206;&#x5DE5;&#x548C;&#x5408;&#x5E76;&#x3002;</p>
<h1 id="&#x5B89;&#x88C5;">&#x5B89;&#x88C5;</h1>
<ol>
<li>ruby&#x5B89;&#x88C5;&#xFF0C;&#x5B89;&#x88C5;&#x597D;&#x7528;&#x2018;gem -v&#x2019; &#x68C0;&#x9A8C;&#x662F;&#x5426;&#x6210;&#x529F;</li>
<li>sass&#x5B89;&#x88C5;&#xFF0C;&#x5B89;&#x88C5;&#x597D;&#x7528;&#x2018;scss -v&#x2019;&#x68C0;&#x9A8C;&#x662F;&#x5426;&#x6210;&#x529F;</li>
</ol>
<h1 id="&#x4F7F;&#x7528;">&#x4F7F;&#x7528;</h1>
<p>&#x4F7F;&#x7528;&#x65B9;&#x6CD5;&#x2192;<a href="https://www.sass.hk/docs/" target="_blank">&#x6587;&#x6863;</a></p>
<h1 id="&#x5F00;&#x542F;&#x76D1;&#x542C;">&#x5F00;&#x542F;&#x76D1;&#x542C;</h1>
<pre><code>scss --watch --style compressed &#x76D1;&#x542C;&#x76EE;&#x5F55;&#xFF1A;&#x8F93;&#x51FA;&#x76EE;&#x5F55;

&#x4F8B;&#x5982;&#xFF1A;
scss --watch --style compressed scss:css
</code></pre><h1 id="&#x8BED;&#x6CD5;">&#x8BED;&#x6CD5;</h1>
<ol>
<li><p>&#x53D8;&#x91CF;     </p>
<pre><code> //&#x8BBE;&#x7F6E;&#x53D8;&#x91CF;&#xFF0C;&#x65B9;&#x4FBF;&#x540E;&#x7EED;&#x91CD;&#x590D;&#x4F7F;&#x7528;&#xFF0C;&#x5E76;&#x65B9;&#x4FBF;&#x7EDF;&#x4E00;&#x4FEE;&#x6539;
 $h1-size:20px;
 $h2-size:18px;

 div .tittle{
     font-size: $h1-size;
 }
 p .tittle{
     font-size: $h1-size;

 }
</code></pre></li>
<li><p>&#x5D4C;&#x5957;</p>
<pre><code> .web{
     width:1000px;
     margin:0 auto;
     header{
         //&#x8FD9;&#x91CC;&#x5C31;&#x53EF;&#x4EE5;&#x5199;&#x5173;&#x4E8E;.web&#x91CC;&#x9762;&#x7684;&#x5B50;&#x5143;&#x7D20;header&#x7684;&#x76F8;&#x5173;&#x6837;&#x5F0F;
     }
 }
</code></pre><blockquote>
<p>PS:&#x8FD9;&#x6837;&#x7684;&#x5199;&#x6CD5;&#x53EF;&#x4EE5;&#x65B9;&#x4FBF;&#x6211;&#x4EEC;&#x7BA1;&#x7406;&#x5143;&#x7D20;&#x7684;&#x5C42;&#x7EA7;&#x5173;&#x7CFB;&#xFF0C;&#x66F4;&#x597D;&#x7684;&#x7EF4;&#x62A4;&#x4EE3;&#x7801;</p>
</blockquote>
<p> &#x5982;&#x679C;&#x8981;&#x5199;&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;&#x548C;&#x4F2A;&#x5BF9;&#x8C61;&#x9009;&#x62E9;&#x5668;&#xFF0C;&#x53EF;&#x4EE5;&#x7528;&#x2018;&amp;&#x2019;&#x7B26;&#x53F7;&#x6765;&#x4EE3;&#x66FF;&#x81EA;&#x8EAB;&#xFF0C;&#x4F8B;&#x5982;</p>
<pre><code> div{
     &amp;:hover{
         background:skyblue;

     }
     &amp;::after{
         content:&quot;&quot;;
     }
     ~p{
         color:red;
     }

 }
</code></pre></li>
<li><p>&#x5BFC;&#x5165;Scss&#x6587;&#x4EF6;
 &#x53EF;&#x4EE5;&#x628A;&#x591A;&#x6B21;&#x91CD;&#x7528;&#x7684;&#x6837;&#x5F0F;&#x5199;&#x5230;&#x5355;&#x72EC;&#x4E00;&#x4E2A;scss&#x6587;&#x4EF6;&#x91CC;&#xFF0C;&#x5728;&#x9700;&#x8981;&#x7684;&#x65F6;&#x5019;&#x5BFC;&#x5165;&#x8FDB;&#x6765;    </p>
<pre><code> @charset &quot;utf-8&quot;;

 @import &quot;common/reset&quot;;
 @import &quot;common/common&quot;

 div{
     color: black;
 }
</code></pre><blockquote>
<p>&#x5982;&#x679C;&#x4F60;&#x4E0D;&#x5E0C;&#x671B;&#x88AB;&#x5BFC;&#x5165;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x88AB;&#x7F16;&#x8BD1;&#x4E3A;css&#x6587;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x4ED6;&#x7684;&#x540D;&#x5B57;&#x524D;&#x9762;&#x52A0;&#x4E00;&#x4E2A;<strong>_</strong></p>
</blockquote>
</li>
</ol>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/css/fixed.html" class="navigation navigation-prev " aria-label="Previous page: fixed"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/css/iconfont.html" class="navigation navigation-next " aria-label="Next page: icon"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sectionx/sectionx.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"sectionx":{},"expandable-chapters":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
